package com.megurokai.command;

import android.graphics.Canvas;
import android.graphics.Paint;

import com.megurokai.paint.Status;

public class CommandStartPencil extends CommandStartPaint {

	public CommandStartPencil(Status status) {
		super(status);
	}
	
	@Override
	public boolean draw(Status status) {
		super.draw(status);
		
		Paint p = status.getPaint();
		p.setStyle(Paint.Style.FILL);
		p.setAntiAlias(false);
		float r = status.getStrokeWidth()/2;
		
		Canvas c = status.getCanvas();
		c.drawCircle(status.getX(), status.getY(), r, p);
		return false;
	}

}
